import Vue from "vue";
import Router from "vue-router";
Vue.use(Router);
const router = new Router({
  mode: "hash",
  routes: [
    {
      path: "/",
      name: "app",
      redirect: "/index/index",

    },
      {
          path: "/index/index",
          name: "index",
          component: resolve => require(["./views/index/Index"], resolve),
          meta: {
              title: "调度端",
              isShowTar: false, // 用于配置是否显示bar
              isShowBar: false,
          },
          props:true
      },
      {
          path: '/login/index',
          name: "login",
          component: resolve => require(["./views/login/LoginIn"], resolve),
          meta: {
              title: "登陆",
              isShowTar: false, // 用于配置是否显示bar
              isShowBar: false,
          },
          props:true
      },
    {
      path: '/setting/index',
      name: "setting",
      component: resolve => require(["./views/setting/index"], resolve),
      meta: {
        title: "个人中心",
        isShowTar: false, // 用于配置是否显示bar
        isShowBar: false,
      }
    }
  ]
});

export default router
